#include <iostream>
#include <iomanip>
#include <sstream>
using namespace std;

int main()
{
    int N;
    cin >> N;
    stringstream ss;
    ss << N;
    string s;
    ss >> s;
    int i;
    for(i = 0; i < s.size()-1; i++)
        cout << s[i] << "   ";
    cout << s[i];
}